package com.ly.heart.service;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ly.common.core.domain.AjaxResult;
import com.ly.heart.domain.KingInquiryEntity;
import com.ly.heart.domain.dto.KingInquiryQueryDto;

/**
 * 金蝶-询价/报价单Service接口
 *
 * @author cxl
 * @date 2024-07-11
 */
public interface IKingInquiryService extends IService<KingInquiryEntity> {

    /**
     * 暂存询价/报价单
     * @param kingInquiryEntity
     * @return
     */
    AjaxResult draft(KingInquiryEntity kingInquiryEntity);

    /**
     * 提交询价/报价单
     * @param kingInquiryEntity
     * @return
     */
    AjaxResult submit(KingInquiryEntity kingInquiryEntity);

    /**
     * 查询金蝶-询价/报价单
     *
     * @param id 金蝶-询价/报价单ID
     * @return 金蝶-询价/报价单
     */
    public KingInquiryEntity selectKingInquiryEntityById(String id);

    /**
     * 查询金蝶-询价/报价单列表
     *
     * @param kingInquiryEntity 金蝶-询价/报价单
     * @return 金蝶-询价/报价单集合
     */
    public List<KingInquiryEntity> selectKingInquiryEntityList(KingInquiryEntity kingInquiryEntity);

    /**
     * 修改金蝶-询价/报价单
     *
     * @param kingInquiryEntity 金蝶-询价/报价单
     * @return 结果
     */
    public int updateKingInquiryEntity(KingInquiryEntity kingInquiryEntity);

    /**
     * 批量删除金蝶-询价/报价单
     *
     * @param ids 需要删除的金蝶-询价/报价单ID
     * @return 结果
     */
    public int deleteKingInquiryEntityByIds(String[] ids);

    /**
     * 删除金蝶-询价/报价单信息
     *
     * @param id 金蝶-询价/报价单ID
     * @return 结果
     */
    public int deleteKingInquiryEntityById(String id);

    /**
     * 获取询价单列表，带分页
     * @param queryDto
     * @return
     */
    AjaxResult getKingInquiryPageList(KingInquiryQueryDto queryDto);

    /**
     * 获取报价单列表，带分页
     * @param queryDto
     * @return
     */
    AjaxResult getKingInquiryOfferPageList(KingInquiryQueryDto queryDto);
}
